package educationaladministrationsystem.CSM.Mapper.Service.ServiceInterface.RootInterface;

import educationaladministrationsystem.Class.EssayDownload;
import educationaladministrationsystem.Class.EssayUpload;

import java.io.IOException;
import java.util.List;

public interface RootMajor {
    boolean saveEssay(EssayUpload essayUpload) throws IOException;

    Integer getAvailableEssayId();

    List<EssayDownload> downloadEssay(Integer page, Integer pageNumber);

    void deleteEssay(Integer deleteId);

    Integer getAllPage(int pageNumber);

    EssayDownload getOneDownloadEssay(Integer id);

    void updateEssay(EssayUpload essayUpload) throws IOException;
}
